package com.codeerror.demo.bean;

import com.codeerror.demo.util.DateUtil;

import org.litepal.crud.LitePalSupport;

public class WordsBean extends LitePalSupport {
    private long time;
    private String formattedTime;
    private String words;
    private int bgId;

    public WordsBean() { }

    public String getWords() {
        return words;
    }

    public int getBgId() {
        return bgId;
    }

    public void setWords(String words) {
        this.words = words;
    }

    public void setBgId(int bgId) {
        this.bgId = bgId;
    }

    public void setTime(long time) {
        this.time = time;
        formattedTime = DateUtil.getFormattedTime(time);
    }
}
